package com.diankangwo.factory.dao;

import com.diankangwo.factory.entity.TdUserinfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TdUserinfoMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(TdUserinfo record);

    int insertSelective(TdUserinfo record);

    TdUserinfo selectByPrimaryKey(Integer id);

    TdUserinfo selectByPhone(String phone);

    int updateByPrimaryKeySelective(TdUserinfo record);

    int updateByPrimaryKey(TdUserinfo record);

    /**
     * 根据条件获取会员列表
     */
    List<TdUserinfo> queryList(Map<String, Object> map);

    List<TdUserinfo> queryList3(Map<String, Object> map);

    int queryTotal3(Map<String, Object> map);

    /**
     * 根据条件获取会员总数
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 按日查询评论
     */
    List<TdUserinfo> queryByDay(String startTime, String endTime);

    /**
     * 按父级ID查询
     */
    List<TdUserinfo> queryByParentId2(int parentId);

    List<TdUserinfo> queryByParentId(Map<String, Object> map);

    int queryTotal2(Map<String, Object> map);

    /**
     * 根据查询条件查询端口列表
     */
    List<TdUserinfo> queryListUser(Map<String,Object> map);

    TdUserinfo selectByUid(String uid);

    TdUserinfo selectById(Integer id);
}